package com.chen.androidstudy.activity

import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import com.base.library.base.BaseVM
import com.base.library.base.BaseVMActivity
import com.chen.androidstudy.R
import com.chen.androidstudy.databinding.ActivityDialPadBinding
import com.chen.androidstudy.databinding.ActivityImmersionBinding
import dagger.hilt.android.AndroidEntryPoint

/**
 *
 * @Author:        CHong
 * @CreateDate:    2024/6/07 0022
 * @Description: 沉浸式
 */
@AndroidEntryPoint
class ImmersionActivity : BaseVMActivity<ImmersionViewModel, ActivityImmersionBinding>() {
    override fun getLayoutId(): Int {
        return R.layout.activity_immersion
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        requestWindowFeature(Window.FEATURE_NO_TITLE)//隐藏标题栏
        window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)//隐藏状态栏
        super.onCreate(savedInstanceState)
        mVm.setImmersion(window)
    }

}